(global.webpackJsonp = global.webpackJsonp || []).push([ [ "integral/index" ], {
    4821: function(t, e, n) {
        (function(t) {
            n("1067"), r(n("66fd"));
            var e = r(n("7368"));
            function r(t) {
                return t && t.__esModule ? t : {
                    default: t
                };
            }
            wx.__webpack_require_UNI_MP_PLUGIN__ = n, t(e.default);
        }).call(this, n("543d").createPage);
    },
    "4cd4": function(t, e, n) {
        var r = n("d6c4");
        n.n(r).a;
    },
    "6ac7": function(t, e, n) {
        (function(t) {
            Object.defineProperty(e, "__esModule", {
                value: !0
            }), e.default = void 0;
            var r = n("8434"), o = n("03c7"), i = n("7960"), a = n("b806"), c = n("a71e"), u = (n("db8f"), 
            function(t) {
                return t && t.__esModule ? t : {
                    default: t
                };
            }(n("801c")));
            function s(t) {
                return function(t) {
                    if (Array.isArray(t)) return f(t);
                }(t) || function(t) {
                    if ("undefined" != typeof Symbol && Symbol.iterator in Object(t)) return Array.from(t);
                }(t) || function(t, e) {
                    if (t) {
                        if ("string" == typeof t) return f(t, e);
                        var n = Object.prototype.toString.call(t).slice(8, -1);
                        return "Object" === n && t.constructor && (n = t.constructor.name), "Map" === n || "Set" === n ? Array.from(t) : "Arguments" === n || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n) ? f(t, e) : void 0;
                    }
                }(t) || function() {
                    throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
                }();
            }
            function f(t, e) {
                (null == e || e > t.length) && (e = t.length);
                for (var n = 0, r = new Array(e); n < e; n++) r[n] = t[n];
                return r;
            }
            function d(t, e) {
                var n = Object.keys(t);
                if (Object.getOwnPropertySymbols) {
                    var r = Object.getOwnPropertySymbols(t);
                    e && (r = r.filter(function(e) {
                        return Object.getOwnPropertyDescriptor(t, e).enumerable;
                    })), n.push.apply(n, r);
                }
                return n;
            }
            function l(t, e, n) {
                return e in t ? Object.defineProperty(t, e, {
                    value: n,
                    enumerable: !0,
                    configurable: !0,
                    writable: !0
                }) : t[e] = n, t;
            }
            var p = {
                components: {
                    search: function() {
                        n.e("integral/components/index").then(function() {
                            return resolve(n("1f41"));
                        }.bind(null, n)).catch(n.oe);
                    },
                    IntegralGoods: function() {
                        n.e("integral/components/IntegralGoods").then(function() {
                            return resolve(n("b507"));
                        }.bind(null, n)).catch(n.oe);
                    }
                },
                computed: function(t) {
                    for (var e = 1; e < arguments.length; e++) {
                        var n = null != arguments[e] ? arguments[e] : {};
                        e % 2 ? d(Object(n), !0).forEach(function(e) {
                            l(t, e, n[e]);
                        }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(t, Object.getOwnPropertyDescriptors(n)) : d(Object(n)).forEach(function(e) {
                            Object.defineProperty(t, e, Object.getOwnPropertyDescriptor(n, e));
                        });
                    }
                    return t;
                }({}, (0, n("26cb").mapGetters)([ "configs", "user", "mainColor" ])),
                data: function() {
                    return {
                        swiperList: [],
                        goodArr: [],
                        isRequest: !0,
                        loadingOk: !0,
                        datas: [],
                        searchParams: {
                            alignMode: "2",
                            backgroundColor: "#fff",
                            outColor: "#f5f5f5",
                            outType: "2",
                            paddingBottom: "8px",
                            paddingLR: "7.5px",
                            paddingTop: "8px",
                            radius: "20px",
                            show: "1",
                            text: "搜索",
                            textColor: "#B2B2B2",
                            type: "1"
                        },
                        info: {},
                        isShow: !1,
                        page: 1,
                        pageSize: 10,
                        searchUrl: ""
                    };
                },
                created: function() {},
                onLoad: function(t) {
                    (0, c.isEmpty)(t.pid) || u.default.commit("config/SET_PID", t.pid), (0, c.isEmpty)(decodeURIComponent(t.scene).split("pid=")[1]) || u.default.commit("config/SET_PID", decodeURIComponent(t.scene).split("pid=")[1]);
                },
                onShow: function() {
                    var t = this;
                    t.searchUrl = "/diy/diy/search?type=5", (0, a.init)(this).then(function(e) {
                        t.getDetail(), t.getList();
                    });
                },
                onShareAppMessage: function(t) {
                    var e = (0, c.isEmpty)(this.user.id) ? 0 : this.user.id;
                    return t.from, {
                        title: "积分商城",
                        path: "/integral/index?pid=" + e
                    };
                },
                onShareTimeline: function() {
                    return {
                        title: "积分商城",
                        query: "pid=" + ((0, c.isEmpty)(this.user.id) ? 0 : this.user.id),
                        imageUrl: ""
                    };
                },
                methods: {
                    onReachBottom: function() {
                        this.page++, this.getList();
                    },
                    login: function() {
                        if (!(0, c.isEmpty)(this.info.nickName)) return !1;
                        (0, i.h5JudgeLogin)(2).then(function(t) {});
                    },
                    getList: function() {
                        var e = this, n = this, r = {
                            page: this.page,
                            pagesize: this.pageSize,
                            type_id: 0,
                            keyword: ""
                        };
                        (0, o.integralGood)(r).then(function(r) {
                            var o = n.goodArr, i = r.list;
                            o && 1 != n.page && (i = [].concat(s(o), s(i))), n.goodArr = i, e.loadingOk = !0, 
                            e.isRequest = 0 == n.goodArr.length, t.stopPullDownRefresh();
                        });
                    },
                    getDetail: function() {
                        var t = this;
                        (0, o.integralIndex)({}).then(function(e) {
                            t.info = e, t.datas = e.type, t.swiperList = e.banner, t.isShow = !0;
                        });
                    },
                    navToClassify: function(t) {
                        (0, r.route)({
                            url: "/integral/classlist",
                            type: 1,
                            data: {
                                type_id: t.id
                            }
                        });
                    },
                    navtoDh: function() {
                        (0, i.h5JudgeLogin)(2).then(function(t) {
                            t || (0, r.route)({
                                url: "/integral/order/orderList",
                                type: 1,
                                data: {}
                            });
                        });
                    }
                }
            };
            e.default = p;
        }).call(this, n("543d").default);
    },
    7368: function(t, e, n) {
        n.r(e);
        var r = n("c552"), o = n("d5ca");
        for (var i in o) "default" !== i && function(t) {
            n.d(e, t, function() {
                return o[t];
            });
        }(i);
        n("4cd4");
        var a = n("f0c5"), c = Object(a.a)(o.default, r.b, r.c, !1, null, "60b3058e", null, !1, r.a, void 0);
        e.default = c.exports;
    },
    c552: function(t, e, n) {
        n.d(e, "b", function() {
            return r;
        }), n.d(e, "c", function() {
            return o;
        }), n.d(e, "a", function() {});
        var r = function() {
            this.$createElement;
            this._self._c;
        }, o = [];
    },
    d5ca: function(t, e, n) {
        n.r(e);
        var r = n("6ac7"), o = n.n(r);
        for (var i in r) "default" !== i && function(t) {
            n.d(e, t, function() {
                return r[t];
            });
        }(i);
        e.default = o.a;
    },
    d6c4: function(t, e, n) {}
}, [ [ "4821", "common/runtime", "common/vendor" ] ] ]);